package Object;

import string.StringBuilderDemo;

public class EqualsDemo {
    public static void main(String[] args) {
        String s1 = "123";
        String s2 = "123";
        System.out.println(s1.equals(s2));
        StringBuilder builder1 = new StringBuilder("123");
        StringBuilder builder2 = new StringBuilder("123");
        System.out.println(builder1.equals(builder2));
        System.out.println(s1.equals(builder2));

        Point p1 = new Point(100,200);
        Point p2 = new Point(100,200);
        System.out.println(p1==p2);
        System.out.println(p1.equals(p2));
    }
}
